home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / atexit.man < prev    next >
Encoding:
Text File  |  1990-03-04  |  1.4 KB  |  69 lines

  1.  
  2.  
  3.  
  4. atexit                    User Commands                    atexit
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      atexit - Register procedure to  be  invoked  before  process
  12.      exits
  13.  
  14. SSYYNNOOPPSSIISS
  15.      ##iinncclluuddee <<ssttddlliibb..hh>>
  16.  
  17.      iinntt
  18.      aatteexxiitt((_f_u_n_c))
  19.  
  20. AARRGGUUMMEENNTTSS
  21.      void      *_f_u_n_c()        (in)      Procedure  to  call  just
  22.                                         before process exits.
  23.  
  24. _________________________________________________________________
  25.  
  26.  
  27. DDEESSCCRRIIPPTTIIOONN
  28.      AAtteexxiitt may be used to register the procedure _f_u_n_c, such that
  29.      _f_u_n_c  will  be invoked by the eexxiitt procedure before the pro-
  30.      cess exits.  _F_u_n_c will only be called if the eexxiitt  procedure
  31.      is  invoked:  if the process terminates because of a signal,
  32.      or if the process bypasses eexxiitt by calling __eexxiitt, then  _f_u_n_c
  33.      will not be invoked.  _F_u_n_c takes no arguments and returns no
  34.      result.
  35.  
  36.      The normal return value from aatteexxiitt is 0.  If the  registra-
  37.      tion fails then a non-zero value is returned.
  38.  
  39. KKEEYYWWOORRDDSS
  40.      exit, handler, register
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Sprite v.1.0         Printed:  March 3, 1990                    1
  66.  
  67.  
  68.  
  69.